package org.glow.changgou.goods;

import org.glow.changgou.entity.MyFeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @Author Glow
 * @Date 2022-09-20 11:25:00
 * @Description
 * @Version 1.0
 */
@EnableEurekaClient
@SpringBootApplication
@Configuration
@Import({org.glow.changgou.entity.IdWorker.class})
public class GoodsApplication {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class,args);
    }
    @Bean
    public MyFeignInterceptor myFeignInterceptor()
    {
        return  new MyFeignInterceptor();
    }
}
//    docker run \
//        -p 3306:3306 \
//        -e MYSQL_ROOT_PASSWORD=123456 \
//        -v /opt/mysql/data:/var/lib/mysql:rw \
//        -v /etc/localtime:/etc/localtime:ro \
//        --name changgousql \
//        --restart=always \
//        -d mysql:8.0
